<?php
$this->breadcrumbs = array(
    'Users' => array('index'),
    $model->id,
);

$this->menu = array(
    array('label' => 'List User', 'url' => array('index')),
    array('label' => 'Create User', 'url' => array('create')),
    array('label' => 'Update User', 'url' => array('update', 'id' => $model->id)),
    array('label' => 'Manage User', 'url' => array('admin')),
);
?>

<h1>View User #<?php echo $model->id; ?></h1>

<?php
$this->widget('bootstrap.widgets.TbDetailView', array(
    'data' => $model,
    'attributes' => array(
        'id',
        'username',
        'email',
        'fullname',
        'phone_no',
        'dob',
        'address',
        array(
            'name' => 'gender',
            'value' => $model->gender == 1 ? "Nam" : "Nữ"
        ),
        array(
            'name' => 'status',
            'value' => $model->status == 1 ? "Hoạt động" : "Khóa"
        ),
        //'login_type',
        'last_visited',
        'created_at',
        'role',
    ),
));
?>
<h1>Ảnh đã đăng</h1>
<?php
$this->widget('bootstrap.widgets.TbGridView', array(
    'id' => 'image-grid',
    'dataProvider' => $image,
    'columns' => array(
        'id',
        'title',
//        array(
//            'name' => 'id',
//            'header' => 'ID',
//            'htmlOptions' => array('style' => 'width:50px;'),
//        ),
//        'username',
//        'email',
//        'fullname',
        /*
          'phone_no',
          'dob',
          'address',
          'gender',
          'status',
          'login_type',
          'last_visited',
          'created_at',
          'role',
         */
        array(
            'class' => 'bootstrap.widgets.TbButtonColumn',
        ),
    ),
));
?>
